<!DOCTYPE html>
<html>
<body>
<h2>PHP 日期和时间</h2>
<h2>https://www.w3school.com.cn/php/php_date.asp</h2>


<?php
echo "今天是 " . date("Y/m/d") . "<br>";
echo "今天是 " . date("Y.m.d") . "<br>";
echo "今天是 " . date("Y-m-d") . "<br>";
echo "今天是 " . date("l");
?>


© 2010-<?php echo date("Y")?>

<br>

<?php
echo "现在时间是 " . date("h:i:sa");
?>

<?php
echo "<br>";
date_default_timezone_set("Asia/Shanghai");
echo "当前时间是 " . date("h:i:sa");
?>

<?php
echo "<br>";

$d=mktime(9, 12, 31, 6, 10, 2015);
echo "创建日期是 " . date("Y-m-d h:i:sa", $d);
?>


</body>
</html>